Skip to content

fix(arrays): avoid empty chunk for even lengths - #6

Open
addielaruee wants to merge 1 commit into
Megasley:mainfrom
addielaruee:fix/5-chunk-even-length
Open

addielaruee wants to merge 1 commit into
Megasley:mainfrom
addielaruee:fix/5-chunk-even-length

Conversation

@addielaruee

Copy link
Copy Markdown

Summary

  • stop chunk iteration at the array boundary
  • add coverage for evenly divisible input

Checks

  • npm test
  • git diff --check

Closes #5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix chunk() producing an extra empty array

1 participant